///Print 0xD0000000 - 4KB things to the surface
#include "HAL.h"
#include "Display.h"
#include "IFDInterface.h"

unsigned int DISPLAY_HEIGHT = 128;
unsigned int DISPLAY_WIDTH  = 160;
unsigned int DIS_ADDRESS = 0;

static _DMAPar* DMA_DisplayConfigure(_DMAPar* para)
{

#define paramSet	(*para)
    paramSet.srcAddr    = UI_FROM;
    paramSet.destAddr   = DIS_ADDRESS;
    paramSet.srcBIdx    = sizeof(unsigned int);
    paramSet.srcCIdx    = UI_SIZE;
    paramSet.destBIdx   = 0;
    paramSet.destCIdx   = 0;
    paramSet.aCnt       = DIS_WIDTH_SIZE;
    paramSet.bCnt       = (unsigned short)(DMA_BLOCK_SIZE/(DIS_WIDTH_SIZE));
    paramSet.cCnt       = (unsigned short)(UI_SIZE / DMA_BLOCK_SIZE);		//Problem
    paramSet.bCntReload = 0x0;
    paramSet.linkAddr   = 0xffff;
    paramSet.opt        = 0;

    /* Set OPT */
//    paramSet.opt |= ((MMCSD_TX_EDMA_CHAN << EDMA3CC_OPT_TCC_SHIFT) & EDMA3CC_OPT_TCC);

    /* 1. Transmission complition interrupt enable */
//    paramSet.opt |= (1 << EDMA3CC_OPT_TCINTEN_SHIFT);

    /* 2. Read FIFO : DST Constant addr mode */
//    paramSet.opt |= (1 << 1);

    /* 3. DST FIFO width is 32 bit */
//    paramSet.opt |= (2 << 8);

    /* 4.  AB-Sync mode */
//    paramSet.opt |= (1 << 2);
#undef paramSet
}


int DisplayInit()
{

}

int DisplayDraw()
{
	
}


